/// @description 时间控制
// 作者：蟋蟀蝈蝈蛐蛐(小蟀) QQ1126390395

//调整速度
if(keyboard_check_pressed(vk_up))
	sp++;
else if(keyboard_check_pressed(vk_down))
	sp--;
if(sp<1)
	sp = 1;

//回退控制
if(keyboard_check(vk_space))
	old = true;
else
	old = false;

//回退
if(old)
{
	timer-=sp;
	if(timer<0)
		timer = 0;

	with(all)
	{
		x = data[other.timer,0];
		y = data[other.timer,1];
		image_index = data[other.timer,2];
		sprite_index = data[other.timer,3];
		image_xscale = data[other.timer,4];
	}
}
//记录
else
{
	timer++;
	with(all)
	{
		data[other.timer,0] = x;
		data[other.timer,1] = y;
		data[other.timer,2] = image_index;
		data[other.timer,3] = sprite_index;
		data[other.timer,4] = image_xscale;
	}
}




















